package com.yanmaohu.yulia.bean;

/**
 * @author Bright Lee
 */
public final class Transcoding implements StringValueFunction {

    private int beginIndex;
    private int endIndex;
    private StringValueExpression characterValueExpression;
    private SchemaQualifiedName transcodingName;

    public Transcoding(int beginIndex,
                       int endIndex,
                       StringValueExpression characterValueExpression,
                       SchemaQualifiedName transcodingName) {
        this.beginIndex = beginIndex;
        this.endIndex = endIndex;
        this.characterValueExpression = characterValueExpression;
        this.transcodingName = transcodingName;
    }

    @Override
    public int getBeginIndex() {
        return beginIndex;
    }

    @Override
    public int getEndIndex() {
        return endIndex;
    }

    public StringValueExpression getCharacterValueExpression() {
        return characterValueExpression;
    }

    public SchemaQualifiedName getTranscodingName() {
        return transcodingName;
    }

}
